package com.maweirdos.springSecurity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maweirdos.springSecurity.domain.Menu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Author:  Maweirdos
 * Date:  2024/6/23 下午8:46
 * Description:  权限接口
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {
    //由于是多表联查，mybatis-plus的BaseMapper接口没有提供，我们需要自定义方法，所以需要创建对应的mapper文件，定义对应的sql语句
    List<String> selectPermsByUserId(Long id);
}
